import { default as request, cloud } from "@/framework/utils/request";
/**
 * @description: 个人资料 /user/detail
 * @param data
 */
export function userDetail(data) {
  return request({
    url: `${cloud.mall}/user/detail`,
    method: "get",
    params: data,
  });
}
//获取用户积分

export function getIntegral(data) {
  return request({
    url: `${cloud.mall}/tModIntegral/getUserIntegral`,
    method: "post",
    data,
  });
}

//获取积分明细
export function getIntegralDetail(data) {
  return request({
    url: `${cloud.mall}/tModIntegral/getIntegralDetail`,
    method: "post",
    data,
  });
}
//获取用户余额
export function getBalance(data) {
  return request({
    url: `${cloud.mall}/user/getAccountBalance`,
    method: "get",
    params: data,
  });
}
//获取用户余额明细
export function getBalanceDetail(data) {
  return request({
    url: `${cloud.mall}/tMusBalanceRecord/page`,
    method: "get",
    params: data,
  });
}
